3.164 \(\int \frac {A+B \cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) (a+a \cos (c+d x))^3} \, dx\)
Optimal. Leaf size=221 \[ -\frac {(13 A-3 B) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{6 a^3 d}-\frac {(49 A-9 B) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{10 a^3 d}+\frac {(49 A-9 B) \sin (c+d x)}{10 a^3 d \sqrt {\cos (c+d x)}}-\frac {(13 A-3 B) \sin (c+d x)}{6 d \sqrt {\cos (c+d x)} \left (a^3 \cos (c+d x)+a^3\right )}-\frac {(8 A-3 B) \sin (c+d x)}{15 a d \sqrt {\cos (c+d x)} (a \cos (c+d x)+a)^2}-\frac {(A-B) \sin (c+d x)}{5 d \sqrt {\cos (c+d x)} (a \cos (c+d x)+a)^3} \]
[Out]
-1/10*(49*A-9*B)*(cos(1/2*d*x+1/2*c)^2)^(1/2)/cos(1/2*d*x+1/2*c)*EllipticE(sin(1/2*d*x+1/2*c),2^(1/2))/a^3/d-1
/6*(13*A-3*B)*(cos(1/2*d*x+1/2*c)^2)^(1/2)/cos(1/2*d*x+1/2*c)*EllipticF(sin(1/2*d*x+1/2*c),2^(1/2))/a^3/d+1/10
*(49*A-9*B)*sin(d*x+c)/a^3/d/cos(d*x+c)^(1/2)-1/5*(A-B)*sin(d*x+c)/d/(a+a*cos(d*x+c))^3/cos(d*x+c)^(1/2)-1/15*
(8*A-3*B)*sin(d*x+c)/a/d/(a+a*cos(d*x+c))^2/cos(d*x+c)^(1/2)-1/6*(13*A-3*B)*sin(d*x+c)/d/(a^3+a^3*cos(d*x+c))/
cos(d*x+c)^(1/2)
________________________________________________________________________________________
Rubi [A] time = 0.52, antiderivative size = 221, normalized size of antiderivative = 1.00,
number of steps used = 7, number of rules used = 5, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.152, Rules used =
{2978, 2748, 2636, 2639, 2641} \[ -\frac {(13 A-3 B) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{6 a^3 d}-\frac {(49 A-9 B) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{10 a^3 d}+\frac {(49 A-9 B) \sin (c+d x)}{10 a^3 d \sqrt {\cos (c+d x)}}-\frac {(13 A-3 B) \sin (c+d x)}{6 d \sqrt {\cos (c+d x)} \left (a^3 \cos (c+d x)+a^3\right )}-\frac {(8 A-3 B) \sin (c+d x)}{15 a d \sqrt {\cos (c+d x)} (a \cos (c+d x)+a)^2}-\frac {(A-B) \sin (c+d x)}{5 d \sqrt {\cos (c+d x)} (a \cos (c+d x)+a)^3} \]
Antiderivative was successfully verified.
[In]
Int[(A + B*Cos[c + d*x])/(Cos[c + d*x]^(3/2)*(a + a*Cos[c + d*x])^3),x]
[Out]
-((49*A - 9*B)*EllipticE[(c + d*x)/2, 2])/(10*a^3*d) - ((13*A - 3*B)*EllipticF[(c + d*x)/2, 2])/(6*a^3*d) + ((
49*A - 9*B)*Sin[c + d*x])/(10*a^3*d*Sqrt[Cos[c + d*x]]) - ((A - B)*Sin[c + d*x])/(5*d*Sqrt[Cos[c + d*x]]*(a +
a*Cos[c + d*x])^3) - ((8*A - 3*B)*Sin[c + d*x])/(15*a*d*Sqrt[Cos[c + d*x]]*(a + a*Cos[c + d*x])^2) - ((13*A -
3*B)*Sin[c + d*x])/(6*d*Sqrt[Cos[c + d*x]]*(a^3 + a^3*Cos[c + d*x]))
Rule 2636
Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[(Cos[c + d*x]*(b*Sin[c + d*x])^(n + 1))/(b*d*(n +
1)), x] + Dist[(n + 2)/(b^2*(n + 1)), Int[(b*Sin[c + d*x])^(n + 2), x], x] /; FreeQ[{b, c, d}, x] && LtQ[n, -1
] && IntegerQ[2*n]
Rule 2639
Int[Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2*EllipticE[(1*(c - Pi/2 + d*x))/2, 2])/d, x] /; FreeQ[{
c, d}, x]
Rule 2641
Int[1/Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2*EllipticF[(1*(c - Pi/2 + d*x))/2, 2])/d, x] /; FreeQ
[{c, d}, x]
Rule 2748
Int[((b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Dist[c, Int[(b*S
in[e + f*x])^m, x], x] + Dist[d/b, Int[(b*Sin[e + f*x])^(m + 1), x], x] /; FreeQ[{b, c, d, e, f, m}, x]
Rule 2978
Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)])*((c_.) + (d_.)*sin[(e_
.) + (f_.)*(x_)])^(n_), x_Symbol] :> Simp[(b*(A*b - a*B)*Cos[e + f*x]*(a + b*Sin[e + f*x])^m*(c + d*Sin[e + f*
x])^(n + 1))/(a*f*(2*m + 1)*(b*c - a*d)), x] + Dist[1/(a*(2*m + 1)*(b*c - a*d)), Int[(a + b*Sin[e + f*x])^(m +
1)*(c + d*Sin[e + f*x])^n*Simp[B*(a*c*m + b*d*(n + 1)) + A*(b*c*(m + 1) - a*d*(2*m + n + 2)) + d*(A*b - a*B)*
(m + n + 2)*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, c, d, e, f, A, B, n}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2
- b^2, 0] && NeQ[c^2 - d^2, 0] && LtQ[m, -2^(-1)] && !GtQ[n, 0] && IntegerQ[2*m] && (IntegerQ[2*n] || EqQ[c,
0])
Rubi steps
\begin {align*} \int \frac {A+B \cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) (a+a \cos (c+d x))^3} \, dx &=-\frac {(A-B) \sin (c+d x)}{5 d \sqrt {\cos (c+d x)} (a+a \cos (c+d x))^3}+\frac {\int \frac {\frac {1}{2} a (11 A-B)-\frac {5}{2} a (A-B) \cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) (a+a \cos (c+d x))^2} \, dx}{5 a^2}\\ &=-\frac {(A-B) \sin (c+d x)}{5 d \sqrt {\cos (c+d x)} (a+a \cos (c+d x))^3}-\frac {(8 A-3 B) \sin (c+d x)}{15 a d \sqrt {\cos (c+d x)} (a+a \cos (c+d x))^2}+\frac {\int \frac {\frac {1}{2} a^2 (41 A-6 B)-\frac {3}{2} a^2 (8 A-3 B) \cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) (a+a \cos (c+d x))} \, dx}{15 a^4}\\ &=-\frac {(A-B) \sin (c+d x)}{5 d \sqrt {\cos (c+d x)} (a+a \cos (c+d x))^3}-\frac {(8 A-3 B) \sin (c+d x)}{15 a d \sqrt {\cos (c+d x)} (a+a \cos (c+d x))^2}-\frac {(13 A-3 B) \sin (c+d x)}{6 d \sqrt {\cos (c+d x)} \left (a^3+a^3 \cos (c+d x)\right )}+\frac {\int \frac {\frac {3}{4} a^3 (49 A-9 B)-\frac {5}{4} a^3 (13 A-3 B) \cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x)} \, dx}{15 a^6}\\ &=-\frac {(A-B) \sin (c+d x)}{5 d \sqrt {\cos (c+d x)} (a+a \cos (c+d x))^3}-\frac {(8 A-3 B) \sin (c+d x)}{15 a d \sqrt {\cos (c+d x)} (a+a \cos (c+d x))^2}-\frac {(13 A-3 B) \sin (c+d x)}{6 d \sqrt {\cos (c+d x)} \left (a^3+a^3 \cos (c+d x)\right )}+\frac {(49 A-9 B) \int \frac {1}{\cos ^{\frac {3}{2}}(c+d x)} \, dx}{20 a^3}-\frac {(13 A-3 B) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx}{12 a^3}\\ &=-\frac {(13 A-3 B) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{6 a^3 d}+\frac {(49 A-9 B) \sin (c+d x)}{10 a^3 d \sqrt {\cos (c+d x)}}-\frac {(A-B) \sin (c+d x)}{5 d \sqrt {\cos (c+d x)} (a+a \cos (c+d x))^3}-\frac {(8 A-3 B) \sin (c+d x)}{15 a d \sqrt {\cos (c+d x)} (a+a \cos (c+d x))^2}-\frac {(13 A-3 B) \sin (c+d x)}{6 d \sqrt {\cos (c+d x)} \left (a^3+a^3 \cos (c+d x)\right )}-\frac {(49 A-9 B) \int \sqrt {\cos (c+d x)} \, dx}{20 a^3}\\ &=-\frac {(49 A-9 B) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{10 a^3 d}-\frac {(13 A-3 B) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{6 a^3 d}+\frac {(49 A-9 B) \sin (c+d x)}{10 a^3 d \sqrt {\cos (c+d x)}}-\frac {(A-B) \sin (c+d x)}{5 d \sqrt {\cos (c+d x)} (a+a \cos (c+d x))^3}-\frac {(8 A-3 B) \sin (c+d x)}{15 a d \sqrt {\cos (c+d x)} (a+a \cos (c+d x))^2}-\frac {(13 A-3 B) \sin (c+d x)}{6 d \sqrt {\cos (c+d x)} \left (a^3+a^3 \cos (c+d x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 7.11, size = 1305, normalized size = 5.90 \[ \text {result too large to display} \]
Antiderivative was successfully verified.
[In]
Integrate[(A + B*Cos[c + d*x])/(Cos[c + d*x]^(3/2)*(a + a*Cos[c + d*x])^3),x]
[Out]
(((-49*I)/10)*A*Cos[c/2 + (d*x)/2]^6*Csc[c/2]*Sec[c/2]*((2*E^((2*I)*d*x)*Hypergeometric2F1[1/2, 3/4, 7/4, -(E^
((2*I)*d*x)*(Cos[c] + I*Sin[c])^2)]*Sqrt[(2*(1 + E^((2*I)*d*x))*Cos[c] + (2*I)*(-1 + E^((2*I)*d*x))*Sin[c])/E^
(I*d*x)]*Sqrt[1 + E^((2*I)*d*x)*Cos[2*c] + I*E^((2*I)*d*x)*Sin[2*c]])/((3*I)*d*(1 + E^((2*I)*d*x))*Cos[c] - 3*
d*(-1 + E^((2*I)*d*x))*Sin[c]) - (2*Hypergeometric2F1[-1/4, 1/2, 3/4, -(E^((2*I)*d*x)*(Cos[c] + I*Sin[c])^2)]*
Sqrt[(2*(1 + E^((2*I)*d*x))*Cos[c] + (2*I)*(-1 + E^((2*I)*d*x))*Sin[c])/E^(I*d*x)]*Sqrt[1 + E^((2*I)*d*x)*Cos[
2*c] + I*E^((2*I)*d*x)*Sin[2*c]])/((-I)*d*(1 + E^((2*I)*d*x))*Cos[c] + d*(-1 + E^((2*I)*d*x))*Sin[c])))/(a + a
*Cos[c + d*x])^3 + (((9*I)/10)*B*Cos[c/2 + (d*x)/2]^6*Csc[c/2]*Sec[c/2]*((2*E^((2*I)*d*x)*Hypergeometric2F1[1/
2, 3/4, 7/4, -(E^((2*I)*d*x)*(Cos[c] + I*Sin[c])^2)]*Sqrt[(2*(1 + E^((2*I)*d*x))*Cos[c] + (2*I)*(-1 + E^((2*I)
*d*x))*Sin[c])/E^(I*d*x)]*Sqrt[1 + E^((2*I)*d*x)*Cos[2*c] + I*E^((2*I)*d*x)*Sin[2*c]])/((3*I)*d*(1 + E^((2*I)*
d*x))*Cos[c] - 3*d*(-1 + E^((2*I)*d*x))*Sin[c]) - (2*Hypergeometric2F1[-1/4, 1/2, 3/4, -(E^((2*I)*d*x)*(Cos[c]
+ I*Sin[c])^2)]*Sqrt[(2*(1 + E^((2*I)*d*x))*Cos[c] + (2*I)*(-1 + E^((2*I)*d*x))*Sin[c])/E^(I*d*x)]*Sqrt[1 + E
^((2*I)*d*x)*Cos[2*c] + I*E^((2*I)*d*x)*Sin[2*c]])/((-I)*d*(1 + E^((2*I)*d*x))*Cos[c] + d*(-1 + E^((2*I)*d*x))
*Sin[c])))/(a + a*Cos[c + d*x])^3 + (26*A*Cos[c/2 + (d*x)/2]^6*Csc[c/2]*HypergeometricPFQ[{1/4, 1/2}, {5/4}, S
in[d*x - ArcTan[Cot[c]]]^2]*Sec[c/2]*Sec[d*x - ArcTan[Cot[c]]]*Sqrt[1 - Sin[d*x - ArcTan[Cot[c]]]]*Sqrt[-(Sqrt
[1 + Cot[c]^2]*Sin[c]*Sin[d*x - ArcTan[Cot[c]]])]*Sqrt[1 + Sin[d*x - ArcTan[Cot[c]]]])/(3*d*(a + a*Cos[c + d*x
])^3*Sqrt[1 + Cot[c]^2]) - (2*B*Cos[c/2 + (d*x)/2]^6*Csc[c/2]*HypergeometricPFQ[{1/4, 1/2}, {5/4}, Sin[d*x - A
rcTan[Cot[c]]]^2]*Sec[c/2]*Sec[d*x - ArcTan[Cot[c]]]*Sqrt[1 - Sin[d*x - ArcTan[Cot[c]]]]*Sqrt[-(Sqrt[1 + Cot[c
]^2]*Sin[c]*Sin[d*x - ArcTan[Cot[c]]])]*Sqrt[1 + Sin[d*x - ArcTan[Cot[c]]]])/(d*(a + a*Cos[c + d*x])^3*Sqrt[1
+ Cot[c]^2]) + (Cos[c/2 + (d*x)/2]^6*Sqrt[Cos[c + d*x]]*((2*(20*A + 29*A*Cos[c] - 9*B*Cos[c])*Csc[c/2]*Sec[c/2
]*Sec[c])/(5*d) + (4*Sec[c/2]*Sec[c/2 + (d*x)/2]*(29*A*Sin[(d*x)/2] - 9*B*Sin[(d*x)/2]))/(5*d) + (4*Sec[c/2]*S
ec[c/2 + (d*x)/2]^3*(11*A*Sin[(d*x)/2] - 6*B*Sin[(d*x)/2]))/(15*d) + (2*Sec[c/2]*Sec[c/2 + (d*x)/2]^5*(A*Sin[(
d*x)/2] - B*Sin[(d*x)/2]))/(5*d) + (16*A*Sec[c]*Sec[c + d*x]*Sin[d*x])/d + (4*(11*A - 6*B)*Sec[c/2 + (d*x)/2]^
2*Tan[c/2])/(15*d) + (2*(A - B)*Sec[c/2 + (d*x)/2]^4*Tan[c/2])/(5*d)))/(a + a*Cos[c + d*x])^3
________________________________________________________________________________________
fricas [F] time = 1.16, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {{\left (B \cos \left (d x + c\right ) + A\right )} \sqrt {\cos \left (d x + c\right )}}{a^{3} \cos \left (d x + c\right )^{5} + 3 \, a^{3} \cos \left (d x + c\right )^{4} + 3 \, a^{3} \cos \left (d x + c\right )^{3} + a^{3} \cos \left (d x + c\right )^{2}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((A+B*cos(d*x+c))/cos(d*x+c)^(3/2)/(a+a*cos(d*x+c))^3,x, algorithm="fricas")
[Out]
integral((B*cos(d*x + c) + A)*sqrt(cos(d*x + c))/(a^3*cos(d*x + c)^5 + 3*a^3*cos(d*x + c)^4 + 3*a^3*cos(d*x +
c)^3 + a^3*cos(d*x + c)^2), x)
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {B \cos \left (d x + c\right ) + A}{{\left (a \cos \left (d x + c\right ) + a\right )}^{3} \cos \left (d x + c\right )^{\frac {3}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((A+B*cos(d*x+c))/cos(d*x+c)^(3/2)/(a+a*cos(d*x+c))^3,x, algorithm="giac")
[Out]
integrate((B*cos(d*x + c) + A)/((a*cos(d*x + c) + a)^3*cos(d*x + c)^(3/2)), x)
________________________________________________________________________________________
maple [B] time = 1.66, size = 685, normalized size = 3.10 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
int((A+B*cos(d*x+c))/cos(d*x+c)^(3/2)/(a+a*cos(d*x+c))^3,x)
[Out]
-1/60*(-2*(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(-2*sin(1/2*d*x+1/2*c)^4+sin(1/2*d*x+1
/2*c)^2)^(1/2)*(65*A*EllipticF(cos(1/2*d*x+1/2*c),2^(1/2))-147*A*EllipticE(cos(1/2*d*x+1/2*c),2^(1/2))-15*B*El
lipticF(cos(1/2*d*x+1/2*c),2^(1/2))+27*B*EllipticE(cos(1/2*d*x+1/2*c),2^(1/2)))*cos(1/2*d*x+1/2*c)*sin(1/2*d*x
+1/2*c)^4+4*(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(-2*sin(1/2*d*x+1/2*c)^4+sin(1/2*d*x
+1/2*c)^2)^(1/2)*(65*A*EllipticF(cos(1/2*d*x+1/2*c),2^(1/2))-147*A*EllipticE(cos(1/2*d*x+1/2*c),2^(1/2))-15*B*
EllipticF(cos(1/2*d*x+1/2*c),2^(1/2))+27*B*EllipticE(cos(1/2*d*x+1/2*c),2^(1/2)))*sin(1/2*d*x+1/2*c)^2*cos(1/2
*d*x+1/2*c)-2*(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(-2*sin(1/2*d*x+1/2*c)^4+sin(1/2*d
*x+1/2*c)^2)^(1/2)*(65*A*EllipticF(cos(1/2*d*x+1/2*c),2^(1/2))-147*A*EllipticE(cos(1/2*d*x+1/2*c),2^(1/2))-15*
B*EllipticF(cos(1/2*d*x+1/2*c),2^(1/2))+27*B*EllipticE(cos(1/2*d*x+1/2*c),2^(1/2)))*cos(1/2*d*x+1/2*c)+12*(-2*
sin(1/2*d*x+1/2*c)^4+sin(1/2*d*x+1/2*c)^2)^(1/2)*(49*A-9*B)*sin(1/2*d*x+1/2*c)^8-2*(-2*sin(1/2*d*x+1/2*c)^4+si
n(1/2*d*x+1/2*c)^2)^(1/2)*(817*A-147*B)*sin(1/2*d*x+1/2*c)^6+6*(-2*sin(1/2*d*x+1/2*c)^4+sin(1/2*d*x+1/2*c)^2)^
(1/2)*(248*A-43*B)*sin(1/2*d*x+1/2*c)^4-(-2*sin(1/2*d*x+1/2*c)^4+sin(1/2*d*x+1/2*c)^2)^(1/2)*(439*A-69*B)*sin(
1/2*d*x+1/2*c)^2)/a^3/cos(1/2*d*x+1/2*c)^5/(-2*sin(1/2*d*x+1/2*c)^4+sin(1/2*d*x+1/2*c)^2)^(1/2)/sin(1/2*d*x+1/
2*c)/(2*cos(1/2*d*x+1/2*c)^2-1)^(1/2)/d
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: RuntimeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((A+B*cos(d*x+c))/cos(d*x+c)^(3/2)/(a+a*cos(d*x+c))^3,x, algorithm="maxima")
[Out]
Exception raised: RuntimeError >> ECL says: THROW: The catch RAT-ERR is undefined.
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {A+B\,\cos \left (c+d\,x\right )}{{\cos \left (c+d\,x\right )}^{3/2}\,{\left (a+a\,\cos \left (c+d\,x\right )\right )}^3} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
int((A + B*cos(c + d*x))/(cos(c + d*x)^(3/2)*(a + a*cos(c + d*x))^3),x)
[Out]
int((A + B*cos(c + d*x))/(cos(c + d*x)^(3/2)*(a + a*cos(c + d*x))^3), x)
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((A+B*cos(d*x+c))/cos(d*x+c)**(3/2)/(a+a*cos(d*x+c))**3,x)
[Out]
Timed out
________________________________________________________________________________________